#ifndef __MOTOR__
#define __MOTOR__

#include "stdint.h"
#include "stdbool.h"
typedef enum
{
    MOTOR_VIBRATE_TYPE_NONE,
    MOTOR_VIBRATE_TYPE_PHONE_CALL,
    MOTOR_VIBRATE_TYPE_ALARM_CLOCK,
    MOTOR_VIBRATE_TYPE_ANCS_NOTIFY,
    MOTOR_VIBRATE_TYPE_LOST_ALERT,
    MOTOR_VIBRATE_TYPE_SITLONG_ALERT,
    MOTOR_VIBRATE_TYPE_DRINK_ALERT,
    MOTOR_VIBRATE_TYPE_TARGET_COMPLETE,
    MOTOR_VIBRATE_TYPE_HR_CALIBRATION,
    MOTOR_VIBRATE_TYPE_USER_TEST,
    
    MOTOR_VIBRATE_TYPE_LOW_POWER,
    MOTOR_VIBRATE_TYPE_CHARGE,    
    MOTOR_VIBRATE_TYPE_CONNECT,
    MOTOR_VIBRATE_TYPE_DISCONNECT,
    MOTOR_VIBRATE_TYPE_SHARK,

} motor_vibrate_type_t;

void peripheral_motor_On(void);
void peripheral_motor_Off(void);

void peripheralIO_Init(void);

void peripheral_oledpower_On(void);
void peripheral_oledpower_Off(void);
void motor_start(uint16_t duration_ms);
void motor_stop(void);
void motor_start_extend(motor_vibrate_type_t vibrate_type);
#endif
